package com.itheima.order.feign;

import com.itheima.response.UserOrderDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@FeignClient("order")
public interface OrderFeign {
    @GetMapping("/order/username")
    public List<UserOrderDTO> findOrderByName(@PathVariable("username")String username);
}
